org.eclipse.vtp.desktop.projects.core.internals
Class WebServiceTypeSet

java.lang.Object
  extended by org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
      extended by org.eclipse.vtp.desktop.projects.core.internals.WebServiceTypeSet
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, IBusinessObjectSet, ObjectListener, WebServiceConstants, IVoiceToolsResource, IWebServiceTypeSet

public class WebServiceTypeSet
extends VoiceResource
implements IWebServiceTypeSet, WebServiceConstants

Implements IWebServiceTypeSet for the types declared in the WSDL schema.

Since:
2.1
Version:
1.0
Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.desktop.projects.core.internals.WebServiceConstants
ATTRIBUTE, ATTRIBUTE_GROUP, BASE, COMPLEX_TYPE, CONTENT, ELEMENT, EXTENSION, FAULT, GROUP, INPUT, ITEM_TYPE, LIST, MEMBER_TYPES, MESSAGE, NAME, NS_WSDL, NS_XSD, OPERATION, OUTPUT, PART, PORT, PORT_TYPE, REF, RESTRICTION, SCHEMA, SERVICE, SIMPLE_CONTENT, SIMPLE_TYPE, STRING, TARGET_NAMESPACE, TYPE, TYPES, UNION, VALUE, XMLNS
 
Constructor Summary
WebServiceTypeSet(WebService webService)
          Creates a new WebServiceTypeSet.
 
Method Summary
 IBusinessObject createBusinessObject(java.lang.String name)
          Creates a new business object with the given name.
 void deleteBusinessObject(IBusinessObject businessObject)
          Removes the given business object from the application project.
protected  void finishedLoading()
          Called when all business objects have been loaded.
 IBusinessObject getBusinessObject(java.lang.String name)
          Returns the business object with the specified name.
 java.util.List getBusinessObjects()
           
 java.lang.String getName()
           
protected  java.lang.String getObjectId()
          The object id is used by the event system to uniquely identify a project resource.
 IVoiceToolsResource getParent()
          Returns the parent of this resource.
 IWebService getWebService()
          Returns the IWebService that contains this message set.
protected  FieldType loadFieldType(java.lang.Class objectType)
          Determines the field type of the supplied Java class.
 
Methods inherited from class org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
addRefreshListener, deferEvents, finalize, getAdapter, getProject, processObjectEvent, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.vtp.desktop.projects.core.IVoiceToolsResource
addRefreshListener, deferEvents, getProject, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

WebServiceTypeSet

public WebServiceTypeSet(WebService webService)
Creates a new WebServiceTypeSet.

Parameters:
webService - The web service that contains this type set.
Method Detail

loadFieldType

protected FieldType loadFieldType(java.lang.Class objectType)
Determines the field type of the supplied Java class.

Parameters:
objectType - The Java class to determine the field type for.
Returns:
The field type of the supplied Java class.

finishedLoading

protected void finishedLoading()
Called when all business objects have been loaded.


getObjectId

protected java.lang.String getObjectId()
Description copied from class: VoiceResource
The object id is used by the event system to uniquely identify a project resource. In this fashion, multiple references to the resource can be created and still be notified of events.

Specified by:
getObjectId in class VoiceResource
Returns:
A unique identifier for this resource

getName

public java.lang.String getName()
Specified by:
getName in interface IVoiceToolsResource
Returns:
The name of the resource

getParent

public IVoiceToolsResource getParent()
Description copied from interface: IVoiceToolsResource
Returns the parent of this resource. If this is a project resource this function returns this.

Specified by:
getParent in interface IVoiceToolsResource
Returns:
The parent of this resource resource

createBusinessObject

public IBusinessObject createBusinessObject(java.lang.String name)
Description copied from interface: IBusinessObjectSet
Creates a new business object with the given name. The business object will initially have no fields defined but all file and folder resources will be created as part of this action.

Specified by:
createBusinessObject in interface IBusinessObjectSet
Specified by:
createBusinessObject in interface IWebServiceTypeSet
Parameters:
name - The name of the new business object
Returns:
The created business object

deleteBusinessObject

public void deleteBusinessObject(IBusinessObject businessObject)
Description copied from interface: IBusinessObjectSet
Removes the given business object from the application project. All business object related file and folder resources will automatically be removed as part of this action.

Specified by:
deleteBusinessObject in interface IBusinessObjectSet
Specified by:
deleteBusinessObject in interface IWebServiceTypeSet
Parameters:
businessObject - The business object to remove

getBusinessObjects

public java.util.List getBusinessObjects()
Specified by:
getBusinessObjects in interface IBusinessObjectSet
Returns:
The list of IBusinessObjects used by the application project

getBusinessObject

public IBusinessObject getBusinessObject(java.lang.String name)
Description copied from interface: IWebServiceTypeSet
Returns the business object with the specified name.

Specified by:
getBusinessObject in interface IWebServiceTypeSet
Parameters:
name - The name of the business object to return.
Returns:
The business object with the specified name.

getWebService

public IWebService getWebService()
Description copied from interface: IWebServiceTypeSet
Returns the IWebService that contains this message set.

Specified by:
getWebService in interface IWebServiceTypeSet
Returns:
The IWebService that contains this message set.